package com.scedu.spring5;


import com.scedu.spring5.bean.Emp;
import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;

public class TestBean {
    /*1.加载spring的配置文件
          2.获取配置创建的对象
          3.输出user对象和里面的方法
         */
    public static void main(String[] args) {
        ApplicationContext context=new ClassPathXmlApplicationContext("bean3.xml");
        Emp emp = context.getBean("emp", Emp.class);
        emp.test();

    }

}
